package com.xdf.xzymanagementsystem.controller;

import com.xdf.xzymanagementsystem.entity.SysPermission;
import com.xdf.xzymanagementsystem.entity.SysPermissionTool;
import com.xdf.xzymanagementsystem.service.SysPermissionToolService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author chanchaw
 * @create 2022-08-25 14:37
 */
@Api(tags = "权限表")
@CrossOrigin
@RestController
@RequestMapping("/sysPermissionTool")
public class SysPermissionToolController {
    @Autowired
    private SysPermissionToolService service;

    @ApiOperation(value = "查询方法", httpMethod = "GET", notes = "自动生成的查询方法")
    @RequestMapping(value = "/listQuery", method = RequestMethod.POST)
    public List<SysPermissionTool> query(@RequestBody SysPermissionTool record) throws Exception {
        return service.selectByParam(record);
    }
}
